package com.itheima.reggie.comon;

import com.itheima.reggie.domain.Employee;

public class EmployeeGlobalVariable {
    private static ThreadLocal<Employee> threadLocal = new ThreadLocal<>();

    public static void set(Employee employee) {
        threadLocal.set(employee);
    }

    public static Employee get() {
        return threadLocal.get();
    }


    public static void remove() {
        threadLocal.remove();
    }
}
